package com.party.service.sys;

import com.party.common.Page;
import com.party.model.*;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 13-3-31
 * Time: 下午3:14
 * To change this template use File | Settings | File Templates.
 */
public interface MenuService {

    public Page getModelList(SysModel sysModel, int pageSize, int pageNumber);

    public Page getNavList(SysNav sysNav, int pageSize, int pageNumber);

    public Page getNodeList(SysNode sysNode, int pageSize, int pageNumber);

    public int addNav(SysNav sysNav);

    public int addModel(SysModel sysModel);

    public int addNode(SysNode sysNode);

    public int delNav(String ids);

    public int delModel(String ids);

    public int delNode(String ids);

    public int updateNav(SysNav sysNav);

    public int updateModel(SysModel sysModel);

    public int updateNode(SysNode sysNode);

    //获取用户菜单
    public List<SysNav> getNavsByPassport(String passport);

    //获取用户菜单模块
    public List<SysModel> getModelsByPassport(String passport, int navid);

    //获取用户菜单模块
    public List<SysNode> getNodesByPassport(String passport, int modelid);

    public List<SysNav> getNavs();

    public List<SysModel> getModels(SysModel sysModel);

    //获取节点字符串
    public String getNodesStr();

    /**
     * 根据用户权限 -- 获取头部按钮
     *
     * @return
     */
    public SysNav getNav(int navid);

    /**
     * 根据用户权限 -- 获取头部按钮
     *
     * @return
     */
    public SysModel getModel(int modelid);

    public SysNode getNode(int nodeid);

}
